package cn.imvc.app.models;

import org.springframework.data.domain.Page;

import cn.imvc.app.entities.Goods;
import cn.imvc.app.entities.GoodsAttrValue;
import cn.imvc.app.entities.GoodsClassAttr;
import cn.imvc.data.domain.ViewRequest;

public interface GoodsClassAttrModel {

	Page<GoodsClassAttr> find(ViewRequest viewRequest);

	GoodsClassAttr get(int id);
	
	int save(int goodsClassId, GoodsClassAttr goodsClassAttr);

	int update(int id, int goodsClassId, GoodsClassAttr goodsClassAttr);

	String delete(int id);

	void deleteBatch(int[] ids);

	void updateRelationByGoods(Goods goods, int oper);
	
	void updateRelationByAttrClass(GoodsAttrValue goodsAttrValue, int oper);
	
}

